<?php

$action = isset($_GET['action']) ? $_GET['action'] : 'greeting';

$res = '';
switch ($action) {
	case 'greeting':
		$res = 'Welcome!';
		break;
	case 'wave':
		$res = 'Howdy there, partner!';
		break;
}

echo $res;

?>